#ifndef ADUCAR_H_
#define ADUCAR_H_

#include "cocos2d.h"
#include "ADURoad.h"

using namespace cocos2d;

class ADUCar: public CCSprite {
public:
	ADUCar();
	static ADUCar* CreateCarBYFileName(const char* filename);
	void ditermine(CCAcceleration* pAccelerationValue);
	void jump();
	void setState(int state);
	int getState();
	void carJumpFinished(CCNode* node);
	void setRoad(ADURoad *road);
	CCPoint tileCoordForPosition(CCPoint position);

private:
	int carState;
	ADURoad *mRoad;
	CCTMXLayer *_meta;
};

#endif
